package com.yijiaw.dao;

import com.yijiaw.domain.Part;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Part entities.
 * 
 */
public interface PartDAO extends JpaDao<Part> {

	/**
	 * JPQL Query - findPartByImageContaining
	 *
	 */
	public Set<Part> findPartByImageContaining(String image) throws DataAccessException;

	/**
	 * JPQL Query - findPartByImageContaining
	 *
	 */
	public Set<Part> findPartByImageContaining(String image, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPartByRemark
	 *
	 */
	public Set<Part> findPartByRemark(String remark) throws DataAccessException;

	/**
	 * JPQL Query - findPartByRemark
	 *
	 */
	public Set<Part> findPartByRemark(String remark, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPartByNameContaining
	 *
	 */
	public Set<Part> findPartByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findPartByNameContaining
	 *
	 */
	public Set<Part> findPartByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPartByPrimaryKey
	 *
	 */
	public Part findPartByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findPartByPrimaryKey
	 *
	 */
	public Part findPartByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPartByName
	 *
	 */
	public Set<Part> findPartByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findPartByName
	 *
	 */
	public Set<Part> findPartByName(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPartById
	 *
	 */
	public Part findPartById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findPartById
	 *
	 */
	public Part findPartById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPartByImage
	 *
	 */
	public Set<Part> findPartByImage(String image_1) throws DataAccessException;

	/**
	 * JPQL Query - findPartByImage
	 *
	 */
	public Set<Part> findPartByImage(String image_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllParts
	 *
	 */
	public Set<Part> findAllParts() throws DataAccessException;

	/**
	 * JPQL Query - findAllParts
	 *
	 */
	public Set<Part> findAllParts(int startResult, int maxRows) throws DataAccessException;

}